/*
 * @Author: zhang zhijiang 2824735304@qq.com
 * @Date: 2024-12-06 21:44:12
 * @LastEditors: zhang zhijiang 2824735304@qq.com
 * @LastEditTime: 2024-12-07 16:08:20
 * @FilePath: /linux/test_12_6/client.cc
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#include"comman.hpp"
int main()
{
    int m = open(path,O_WRONLY);
   if(m==-1)
   {
    perror("open");
    exit(open_error);
   }
   string s;
   while(true)
   {
    cout<<"please enter@"<<endl;
    getline(cin,s);
    
    int k = write(m,s.c_str(),sizeof(s));
   if(k==-1)
   {
    perror("wtire");
    exit(read_error);
   }
   }
    close(m);
  


    return 0;
}